basic calculation for chemistry